import grails.test.*

class SchoolServiceTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {
        mockDomain(School ,[])

        def schools = new SchoolService()
  
        def school = new School(name: "School Name" , end : new Date() - 1)
        school.save()
        log.info("School.id =  ${school.id}")
        assertFalse schools.checkExpire(school.id)

        //schools.mkdir()
       // def dir = new File(RCH.requestAttributes.servletContext.getRealPath('/' + store + '/' + id))
       // assertTrue dir.exists() 

    }
}
